interface IPerson<T=number,T2=string>{
    name: T2,
    age: T,
    run: (value:T)=>void
}

let obj: IPerson<string> = {
    name: "哈哈",
    age: "12",
    run(value){
        console.log(value)
    }
}
let obj2: IPerson = {
    name: "哈哈",
    age: 12,
    run(value){
        console.log(value)
    }
}